<template>
  <div class="rating">
    <div class="top"></div>
  </div>
  <!-- <ul>
    <li v-for="(item, index) in ratings" :key="item.username">
      <p>{{ item.text }}</p>
    </li>
  </ul> -->
</template>

<script>
import { mapActions, mapMutations, mapState } from "vuex";
export default {
  created() {
    // 获取商品列表数据
    this.getRating();
  },
  computed: {
    ...mapState(["ratings"]),
  },
  methods: {
    ...mapActions(["getRating"]),
  },
};
</script>

<style lang="scss" scoped></style>
